package com.edgar.log4j.appender.prop;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class FileAppenderLogging {
	public FileAppenderLogging() {
	}

	/**
	 * @param args
	 *            the command line arguments
	 */
	public static void main(String[] args) {
		PropertyConfigurator.configureAndWatch(FileAppenderLogging.class
				.getResource("./fileappender.properties").getPath());
		Logger logger = Logger.getLogger(FileAppenderLogging.class.getPackage()
				.getName());
		logger.info("FileAppenderLogging with log4j.properties");
	}
}